home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6520 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  892 b 

  1. Path: dns.plano.net!news    
  2. From: jdunn@plano.net
  3. Newsgroups: comp.lang.c++
  4. Subject: Newbie Q: references
  5. Date: 9 Feb 1996 03:47:26 GMT
  6. Organization: Plano Internet
  7. Message-ID: <4feg4e$ctc@dns.plano.net>
  8. Reply-To: jdunn@plano.net
  9. NNTP-Posting-Host: aux28.plano.net
  10. X-Newsreader: IBM NewsReader/2 v1.09
  11.  
  12. As I understand what happens under the compiler covers, when we pass a reference into a method (function), what actually happens is that the compiler creates another entry in it's symbol table to alias the same address location. This new alias has a different scope and is scoped only in the function it is passed to. Does that mean that the compiler actually does not put any thing at all on the stack for the reference, but just allows you to use the reference inside the function's scope? Is this the r
  13. ason for references ? That they take no overhead in the function calls and returns ?
  14.